import service from '@/utils/request'

// @Tags SelectList
// @Summary 创建SelectList
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SelectList true "创建SelectList"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /selectList/createSelectList [post]
export const createSelectList = (data) => {
     return service({
         url: "/selectList/createSelectList",
         method: 'post',
         data
     })
 }


// @Tags SelectList
// @Summary 删除SelectList
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SelectList true "删除SelectList"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /selectList/deleteSelectList [delete]
 export const deleteSelectList = (data) => {
     return service({
         url: "/selectList/deleteSelectList",
         method: 'delete',
         data
     })
 }

// @Tags SelectList
// @Summary 删除SelectList
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除SelectList"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /selectList/deleteSelectList [delete]
 export const deleteSelectListByIds = (data) => {
     return service({
         url: "/selectList/deleteSelectListByIds",
         method: 'delete',
         data
     })
 }

// @Tags SelectList
// @Summary 更新SelectList
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SelectList true "更新SelectList"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /selectList/updateSelectList [put]
 export const updateSelectList = (data) => {
     return service({
         url: "/selectList/updateSelectList",
         method: 'put',
         data
     })
 }


// @Tags SelectList
// @Summary 用id查询SelectList
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SelectList true "用id查询SelectList"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /selectList/findSelectList [get]
 export const findSelectList = (params) => {
     return service({
         url: "/selectList/findSelectList",
         method: 'get',
         params
     })
 }


// @Tags SelectList
// @Summary 分页获取SelectList列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取SelectList列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /selectList/getSelectListList [get]
 export const getSelectListList = (params) => {
     return service({
         url: "/selectList/getSelectListList",
         method: 'get',
         params
     })
 }

 export const recommend = (data) => {  // 特别要注意 data 和 params的区别
    return service({
        url: "/selectList/recommend",
        method: 'post',
        data
    })
}

export const unRecommend = (data) => {  // 特别要注意 data 和 params的区别
    return service({
        url: "/selectList/unRecommend",
        method: 'post',
        data
    })
}
